<script>
import Header from "@/components/Header.vue";
import LeftMenu from "@/components/LeftMenu.vue";

export default {
  name: "Index",
  //组件注册
  components: {
    Header,
    LeftMenu,
  },
}
</script>

<template>
  <div id="app">
    <el-container>
      <el-header style="background-color: #2d3d58">
        <Header/>
      </el-header>
      <el-container>
        <el-aside style="width: 215px;height: calc(100vh - 64px); overflow-y: auto;">
          <LeftMenu/>
        </el-aside>
        <el-container>
          <el-main>
            <!--二级路由出口-->
            <router-view/>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.el-header, .el-footer {
  background-color: #001529;
  color: #fbfbfb;
  text-align: center;
  line-height: 36px;
}

body {
  padding: 0;
  margin: 0;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 36px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 36px;
}

.el-submenu__title {
  font-size: 14px;
  color: #303133;
  padding: 0 20px;
  cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
  box-sizing: border-box;
  text-align: left;
}

.el-container:nth-child(7) .el-aside {
  line-height: 36px;
}

body::-webkit-scrollbar {
  display: none;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 36px;
}

.el-aside::-webkit-scrollbar {
  display: none;
}
</style>